package com.dome.common.enumeration;

public enum DomeErrorCode {

    SUCCESS(10000, "SUCCESS"),
    SYSTEM_ERROR(10002, "系统错误"),
    ;

    /**
     * code码值
     */
    private int code;

    /**
     * 译文
     */
    private String desc;

    DomeErrorCode(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
